package com.zzt.authlog.service;

import com.zzt.authlog.intf.LogQueue;
import com.zzt.authlog.model.AuthLog;

public class LogService {

	private static LogQueue logqueue = new LogQueue();

	static {
		logqueue.startThread();
	}

	private LogService() {
	}

	/**
	 * 设置日志对象Object属性 调用该方法将日志对象加入到队列中
	 */
	public void writeLog(AuthLog authLog) {
		// 将日志对象加入到日志队列中
		logqueue.putObject(authLog);
	}

}
